package com.htgd.gardenexpo.service;

import com.github.pagehelper.PageInfo;
import com.htgd.gardenexpo.entity.CommonResult;
import com.htgd.gardenexpo.entity.GeConFood;
import com.baomidou.mybatisplus.extension.service.IService;
import com.htgd.gardenexpo.page.FoodQuery;
import com.htgd.gardenexpo.page.FoodRankQuery;
import com.htgd.gardenexpo.page.PageBase;
import com.htgd.gardenexpo.vo.GeConFoodRankingVO;

/**
 * <p>
 * 美食表 服务类
 * </p>
 *
 * @author author
 * @since 2024-04-08
 */
public interface GeConFoodService extends IService<GeConFood> {

    PageInfo<GeConFood> querylist(FoodQuery foodQuery, String openId);

    GeConFood queryById(Integer id);

    void addHit(String id);

    PageInfo<GeConFoodRankingVO> getRanking(FoodRankQuery foodRankQuery, String openId);

    GeConFood details(Integer id,String openId);

    CommonResult add(GeConFood geConFood);

    CommonResult edit(GeConFood geConFood);

    CommonResult delete(int id);

    CommonResult review(GeConFood geConFood);
}
